package Homework;

public class Cat extends Pet {
    private String name;

    public Cat() {

    }

    public Cat(String name) {
        this.name = name;
    }

    @Override
    public void eat() {
        super.eat();
        System.out.println("猫咪吃鱼");
    }

    public void catchMouse() {
        System.out.println("猫猫抓老鼠");
    }
}
